package com.heima.feign.wemedia.client;


import com.heima.common.dtos.ResponseResult;
import com.heima.model.admin.dtos.SensitiveDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "leadnews-wemedia")
public interface WmNewsClient {



    /*查询列表*/
    @PostMapping("/api/v1/sensitive/list")
    public ResponseResult findList(@RequestBody SensitiveDto sensitiveDto);

    /*删除敏感词*/
    @DeleteMapping("/api/v1/sensitive/del/{id}")
    public ResponseResult deleteSensitive(@PathVariable("id") Integer id);


}
